package com.teach.mapper;

import com.teach.entity.TbRolePower;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @Entity com.teach.entity.TbRolePower
 */
@Mapper
public interface TbRolePowerMapper extends BaseMapper<TbRolePower> {

    @Select(value = "SELECT * FROM tb_role_power WHERE role_id=#{id}")
    List<TbRolePower> selectByRid(@Param(value = "id") Integer id);
}




